package com.sheep.web.action;

import org.springframework.beans.factory.annotation.Autowired;

import com.sheep.service.KnowledgeService;
import com.sheep.service.MainService;
import com.sheep.service.SiteRecommendService;

public class MainAction extends BaseAction {
	private String recommend;
	private String knowledge;
	private String floor;
	@Autowired
	private SiteRecommendService siteRecommendService;
	@Autowired
	private KnowledgeService knowledgeService;
	@Autowired
	private MainService mainService;
	
	public String main() {
		recommend = siteRecommendService.getRecHtml();
		knowledge = knowledgeService.getMainKnowHtml();
		floor = mainService.getFloorHtml();
		return  SUCCESS;
	}

	public String getRecommend() {
		return recommend;
	}

	public String getKnowledge() {
		return knowledge;
	}

	public String getFloor() {
		return floor;
	}
	
	
}
